package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
* @author :Beyond🎸🎸
* @date : 2025-10-20 20:01:32
* @description
* ${description}
**/
/**
 * 产品表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_prods")
public class Prods implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "prod_id", type = IdType.AUTO)
    private Integer prodId;

    /**
     * 商品spu
     */
    @TableField(value = "prod_spu")
    @NotBlank(message = "产品spu不能为空")
    private String prodSpu;

    /**
     * 商品分类
     */
    @TableField(value = "prod_type")
    @NotNull(message = "产品分类不能为空")
    private Integer prodType;

    /**
     * 商品类型
     */
    @TableField(value = "prod_kind")
    @NotNull(message = "产品类型不能为空")
    private Integer prodKind;

    /**
     * 商品名称
     */
    @TableField(value = "prod_name")
    @NotBlank(message = "产品名称不能为空")
    private String prodName;

    /**
     * 商品品牌
     */
    @TableField(value = "prod_brand")
    @NotNull(message = "产品品牌不能为空")
    private Integer prodBrand;

    /**
     * 商品单位
     */
    @TableField(value = "unit_id")
    @NotNull(message = "产品单位不能为空")
    private Integer unitId;

    /**
     * 商品标签
     */
    @TableField(value = "tag_id")
    @NotNull(message = "产品标签不能为空")
    private Integer tagId;

    /**
     * 供应商
     */
    @TableField(value = "supplier")
    @NotBlank(message = "供应商不能为空")
    private String supplier;

    /**
     * 缩略图
     */
    @TableField(value = "prod_image")
    @NotBlank(message = "缩略图不能为空")
    private String prodImage;

    /**
     * 商品状态
     */
    @TableField(value = "prod_status")
    private Integer prodStatus;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private Integer createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 删除标识
     */
    @TableField(value = "delete_flag")
    private Integer deleteFlag;

    /**
     * 删除时间
     */
    @TableField(value = "delete_time")
    private Date deleteTime;

    @TableField(exist = false)
    private Integer pageNum;

    @TableField(exist = false)
    private Integer pageSize;

    @TableField(exist = false)
    private String typeName;


    @TableField(exist = false)
    private String brandName;

    @TableField(exist = false)
    private String unitName;

    @TableField(exist = false)
    private String tagName;

    @TableField(exist = false)
    private String kindName;

    @TableField(exist = false)
    private String keyWord;

    @TableField(exist = false)
    private String beginTime;

    @TableField(exist = false)
    private String endTime;

    private static final long serialVersionUID = 1L;
}